#include <iostream>
using namespace std;

int main() {
    string str;
    cin>>str;
    for(int i=str.size()-3;i>0;i-=3){
        str.insert(i,",");
    }
    cout<<str<<endl;
    return 0;
}
